package org.hxzon.cyclone.plinks;

import org.hxzon.cyclone.Particle;
import org.hxzon.cyclone.Vector3;
import org.hxzon.cyclone.pcontacts.ParticleContactGenerator;

//粒子联接
public abstract class ParticleLink implements ParticleContactGenerator {
    public Particle[] particle = new Particle[2];

    protected double currentLength() {
        Vector3 relativePos = particle[0].getPosition().minus(particle[1].getPosition());
        return relativePos.magnitude();
    }

}
